package com.hutao.manage.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import com.hutao.manage.datasource.TargetDataSource;
import com.hutao.manage.mapper.MedicalResourcePicMapper;
import com.hutao.manage.pojo.MedicalResourcePic;
import com.hutao.manage.service.MedicalResourcePicService;

@Service
public class MedicalResourcePicServiceImpl implements MedicalResourcePicService {

	@Autowired
	private MedicalResourcePicMapper medicalResourcePicMapper;
	
	@TargetDataSource(name="ds1")
	@Transactional(propagation=Propagation.REQUIRED)
	@Override
	public int insert(MedicalResourcePic medicalResourcePic) {
		// TODO Auto-generated method stub
		return medicalResourcePicMapper.insert(medicalResourcePic);
	}

}
